mwait-idle: add BXT support
authorLen Brown <len.brown@intel.com>
Thu, 9 Jun 2016 13:52:27 +0000 (15:52 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 9 Jun 2016 13:52:27 +0000 (15:52 +0200)
commita6c60019fd2efa4b9a60ee1114114fe853d1aad5
tree0b675b87472708fc10ebe0736fd0443e81436218
parent1008063e1cd15257875b9db18eede710077adea5
mwait-idle: add BXT support

Broxton has all the HSW C-states, except C3.
BXT C-state timing is slightly different.

Here we trust the IRTL MSRs as authority
on maximum C-state latency, and override the driver's tables
with the values found in the associated IRTL MSRs.
Further we set the target_residency to 1x maximum latency,
trusting the hardware demotion logic.

Signed-off-by: Len Brown <len.brown@intel.com>
[Linux commit: 5dcef694860100fd16885f052591b1268b764d21]
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/cpu/mwait-idle.c
xen/include/asm-x86/msr-index.h